package u.hnx.admin.security.core;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import u.hnx.admin.security.api.SecurityPropertyAPI;
@Getter
@Setter
@ConfigurationProperties(prefix = SecurityProperties.PREFIX)
public class SecurityProperties implements SecurityPropertyAPI {
    private String rememberMe = REMEMBER_ME;
    private String processesUrl = PROCESS_URL;
    private String logout = LOGOUT;
    private String username = USERNAME;
    private Integer maximum = MAXIMUM;
    private String password = PASSWORD;
    private String captcha = CAPTCHA;
    private String uuid = UUID;
    /**
     * PasswordEncoder 加密复杂度，越高开销越大
     */
    private Integer passwordEncoderLength = 4;
    //security放行地址
    private String[] openApi;
    private Integer maxNum = MAX_NUM;
    private int maxRetryCount = DEFAULT_MAX_RETRY_COUNT;
    private int lockTime = DEFAULT_LOCK_TIME;
}
